package org.solon.demo.controller.param;

import org.noear.solon.validation.annotation.Length;
import org.noear.solon.validation.annotation.NotBlank;

import java.util.List;

/**
 * @author thc
 */
public class UserAddParam {

    /**
     * 用户名
     * @mock jim6
     */
    @NotBlank
    @Length(max = 22)
    private String username;


    /**
     * 邮箱
     * @mock jim@dd.com
     */
    @NotBlank
    @Length(max = 200)
    private String email;

    /**
     * 性别
     */
    private GenderEnum gender;

    /**
     * 地址信息
     */
    private List<AddressParam> addressList;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "UserAddParam{" +
                "username='" + username + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
}
